package com.shop.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import com.shop.entities.Admin;
import com.shop.service.AdminLoginService;

@RestController
public class AdminLoginController {
	@Autowired
	private AdminLoginService adminLoginService;
	
	@GetMapping("/admin/login")
	public Admin adminLogin(String adminName,String adminPassword) {
		
		return adminLoginService.AdminLogin("admin01", "admin01");
	}
	
	

}
